package net.osc.dao;

public class DataSourceHolder {
	
	private static final ThreadLocal<Object> dataSourceHolder = new ThreadLocal<Object>();
	
	public static void setDataSource(Object dataSource) {
		dataSourceHolder.set(dataSource);
	}
	
	public static Object getDataSource() {
		return dataSourceHolder.get();
	}
	
	public static void clearDataSource() {
		dataSourceHolder.remove();
	}

}
